package com.lss.study.algorithm.niuke.T7;

import java.awt.geom.Ellipse2D;
import java.util.Scanner;

/**
 * 功能描述：
 *
 * @Date: 2022/2/19 18:21
 */
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String s = scanner.next();
        int i = s.indexOf(".");
        String num = s.substring(0, i);
        String substring = s.substring(i + 1, i + 2);
        if (Integer.valueOf(substring) >= 5) {
            System.out.println(Integer.valueOf(num) + 1);
        } else {
            System.out.println(Integer.valueOf(num));
        }
    }
}
